'use strict';

let { sequelize, defineModel, DataTypes } = require('../db');

// 定义一个模型
let Model = defineModel('score', {
    //问卷Id
    qsId :{
        type : DataTypes.BIGINT,
        allowNull:false
    },
    //评分人Id
    scoreId: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    //评分
    scoreOne: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreTwo: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreThree: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreFour: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreFive: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreSix: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreSeven: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreEight: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreNine: {
        type: DataTypes.BIGINT,
        allowNull: false
    },
    scoreTen: {
        type: DataTypes.BIGINT,
        allowNull: false
    }

});

module.exports = Model